import title from './config/Title'

const routes = store => ({
  path: '/',
  component: require('./global/containers/Root'),
  indexRoute: require('./init')(null, store),
  childRoutes: [
    require('./home')(title.home, store),
    require('./login')(title.login, store),
    require('./cart')(title.cart, store),
    require('./checkout')(title.checkout, store)
  ]
})

export default routes
